package com.nais.authority;

public class AuthorityContext {

	private static ThreadLocal<UserModel> threadLocal = new ThreadLocal<>();
	
	public static UserModel getUserMode() {
		return threadLocal.get();
	}
	
	public static void setUserMode(UserModel umode) {
		 threadLocal.set(umode);
	}
	
	public static void clearModel() {
		threadLocal.remove();
	}
}
